Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable stylecheck linter #2505

Merged
merged 89 commits into from
Jul 31, 2024
Merged

Enable stylecheck linter #2505

merged 89 commits into from
Jul 31, 2024

Conversation

ankitjain235
Copy link
Contributor

Change Overview

This PR enables stylecheck golang linter

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • fixes #issue-number

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

pkg/app/couchbase.go Outdated Show resolved Hide resolved
@saima-s saima-s added kueue and removed kueue labels Jul 12, 2024
pkg/app/couchbase.go Outdated Show resolved Hide resolved
pkg/consts/consts.go Show resolved Hide resolved
pkg/metrics/metrics.go Show resolved Hide resolved
pkg/testing/integration_register.go Outdated Show resolved Hide resolved
pkg/testing/integration_register.go Outdated Show resolved Hide resolved
Base automatically changed from enable-linters-5 to master July 12, 2024 14:05
pkg/testing/integration_register.go Outdated Show resolved Hide resolved
saima-s and others added 2 commits July 26, 2024 12:54
design/kanister-prometheus-integration.md Show resolved Hide resolved
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package repositoryserver validates the secret credentials for all location profiles.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[question] Do we have a lint checker for comment on package name? I don't think that is necessary

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is. ST1000(stylecheck linter). It says we should describe package about what its doing in any one file atleast. Although I have disabled this ST1000 in this PR, but had already made this change, so decided to keep the description as it is and later on ST1000 will be enabled as a part of another PR will add similar description for other packages as well.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pkg/version/version.go Show resolved Hide resolved
@viveksinghggits
Copy link
Contributor

@saima-s let's merge 🚀 it.

@saima-s
Copy link
Contributor

saima-s commented Jul 29, 2024

@saima-s let's merge 🚀 it.

Will merge.

@saima-s saima-s added the kueue label Jul 31, 2024
@mergify mergify bot merged commit a121b50 into master Jul 31, 2024
18 checks passed
@mergify mergify bot deleted the enable-linters-6 branch July 31, 2024 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add more linters to golangci.yaml
6 participants